import java.awt.*;
import javax.swing.*;

public class NewRollDicePanel extends JPanel
{
	private final int WIDTH = 200, HEIGHT = 95; // panel size
	private RollDicePanel rdp;
	
	public NewRollDicePanel()
	{
		setBackground (Color.black);
		setPreferredSize (new Dimension(WIDTH, HEIGHT));

		rdp = new RollDicePanel();
		
		//JPanel jp = new JPanel();
		//jp.setBackground (Color.black);
		//jp.setPreferredSize (new Dimension(125, 10));
		
		add(rdp);
		//add(jp);		
	} // end constructor
	
	public void rollDice()
	{
		rdp.roll();
	}
	
	public int getDiceValue()
	{
		return rdp.getDiceValue();
	}
	
	public boolean rollButtonClicked()
	{
		return rdp.rollButtonClicked();
	}
	
	public void resetRollButtonClicked()
	{
		rdp.resetRollButtonClicked();
	}
	
	public void setRollButtonState(boolean state)
	{
		rdp.setRollButtonState(state);
	}
	
	public boolean diceIsDoubles()
	{
		return rdp.diceIsDoubles();
	}
	
	public boolean rollIsDone()
	{
		return rdp.rollIsDone();
	}
} // end class